<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/*
| -------------------------------------------------------------------------
| URI ROUTING
| -------------------------------------------------------------------------
| This file lets you re-map URI requests to specific controller functions.
|
| Typically there is a one-to-one relationship between a URL string
| and its corresponding controller class/method. The segments in a
| URL normally follow this pattern:
|
|	example.com/class/method/id/
|
| In some instances, however, you may want to remap this relationship
| so that a different class/function is called than the one
| corresponding to the URL.
|
| Please see the user guide for complete details:
|
|	http://codeigniter.com/user_guide/general/routing.html
|
| -------------------------------------------------------------------------
| RESERVED ROUTES
| -------------------------------------------------------------------------
|
| There area two reserved routes:
|
|	$route['default_controller'] = 'welcome';
|
| This route indicates which controller class should be loaded if the
| URI contains no data. In the above example, the "welcome" class
| would be loaded.
|
|	$route['404_override'] = 'errors/page_missing';
|
| This route will tell the Router what URI segments to use if those provided
| in the URL cannot be matched to a valid route.
|
*/

$route['default_controller'] = "loan";
$route['404_override'] = 'error/index';

$route['(:num)'] = "index/index/$1";

$route['account/login'] = "site/login";
$route['account/reg'] = "site/reg";
$route['account/register'] = "site/reg";
$route['account/findpwd'] = "site/findpwd";
$route['account/resetpwd'] = "site/resetpwd";
$route['account/checkmobile'] = "site/checkmobile";
$route['account/bind_mobile'] = "site/bind_mobile";
$route['account/logout'] = "site/logout";
$route['account/third_login'] = "site/third_login";
$route['account/qq_login'] = "site/qq_login";
$route['account/weibo_login'] = "site/weibo_login";
$route['account/weixin_login'] = "site/weixin_login";
$route['account/callback_qq_login'] = "site/callback_qq_login";
$route['account/callback_weibo_login'] = "site/callback_weibo_login";
$route['account/callback_weixin_login'] = "site/callback_weixin_login";
$route['account/third_bind'] = "site/third_bind";

//统计
$route['s/(:num)'] = "statistics/index/$1";

//他人个人中心
$route['u/(:num)'] = "space/index/$1";
$route['u/(:num)/fan'] = "space/fan/$1";
$route['u/(:num)/follow'] = "space/follow/$1";

//文章相关
$route['arts'] = "article";
$route['arts/search'] = "article/search";
$route['arts/search_result'] = "article/search_result";
$route['p/(:num)'] = "article/detial/$1";
$route['p/upub/(:num)'] = "article/upub/$1";
$route['v/(:num)'] = "content/detial/$1";
//问答相关
$route['wenda/(:num)'] = "wenda/detial/$1";
$route['wenda/(:num)/answer/(:num)'] = "wenda/answer/$1/$2";
$route['wenda/(:num)/answer-(:num)'] = "wenda/answer/$1/$2";//指定答案

$route['wenda_answer_edit/(:num)'] = "wenda/answer_edit/$1";
$route['wenda_answer_add/(:num)'] = "wenda/answer_add/$1";
//贷款相关
$route['loan/(:num)'] = "loan/detial/$1";
$route['raiders/(:num)'] = "loan/raiders/$1";
//视频相关
$route['video/(:any)'] = "video/detail/$1";
//帮助中心
$route['helper/(:num)'] = "helper/detail/$1";
//单页
$route['tempage/(:any)'] = "tempage/detail/$1";
//任务相关
$route['task/(:num)'] = "task/detail/$1";
$route['account/taskrec'] = "user/taskrec";
$route['account/taskappeal'] = "user/taskappeal";

//他人个人中心
$route['u/(:num)'] = "space/index/$1";
$route['u/(:num)/fans'] = "space/fans/$1";
$route['u/(:num)/follows'] = "space/follows/$1";
$route['u/(:num)/arts'] = "space/arts/$1";
$route['u/(:num)/question'] = "space/question/$1";
$route['u/(:num)/answer'] = "space/answer/$1";
$route['u/(:num)/comment'] = "space/comment/$1";
/* End of file routes.php */
/* Location: ./application/config/routes.php */
